package com.weds.frame.auth.entity.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * Description:
 * Author: LiuWenQing
 * Datetime: 2023/3/17 09:21
 */
@ApiModel
@Data
public class LoginReq {
    @ApiModelProperty(value = "登录类型: 1.学号(工号) 2.手机 3.邮箱 4.身份证号 ", hidden = true)
    private String type;

    @ApiModelProperty(value = "帐号名称", example = "admin01", required = true)
    @NotBlank
    private String loginName;

    @ApiModelProperty(value = "密码(AES)", example = "Sih+9QUK+0N1XtnAY+lUtQ==", required = true)
    @NotBlank
    private String pwd;

    @ApiModelProperty(value = "登录端", example = "apph5_gating", required = true)
    @NotBlank
    private String client;

    @ApiModelProperty(value = "登录会话id", example = "1234567890", required = true)
    private String sessionId;

    @ApiModelProperty(value = "验证码", example = "1234", required = true)
    private String verificationCode;

    @ApiModelProperty(value = "微信code", hidden = true)
    private String wxCode;

    @ApiModelProperty(value = "openId", hidden = true)
    private String openId; //移动端checkIndex密码登录时使用

    @ApiModelProperty(value = "是否校外人员 1 代表校外， 0校内")
    private Integer foreignLogin; //是否校外人员 1 代表校外
}
